<%@ page language="java"  pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>项目信息</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../css/style_add.css" rel="stylesheet" type="text/css" />
	<link href="css/collcss.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body>
 
    <center><font style="color:red;font-size:14px">项目信息</font></center>
    
    <table border="0" cellpadding="0" cellspacing="0">
    	<tr class="th_bj">
    		<td class="f-12-b-ffffff" align="center" width="200px">
    			项目名称
    		</td>
    		
    		<td class="f-12-b-ffffff" align="center" width="200px">
    			项目编码
    		</td>
    	</tr>
    	
    	
    	<logic:iterate id="proj" name="projs">
    	
    	<tr ondblclick="setMessage('${proj.proj_name }','${proj.pk_xy_proj_main }')" style="cursor:hand"  onmouseover="setBgColor(this)" onmouseout="clearBgColor(this)"
    		style="height:26px">
    	
    			<td style="font-size:12px">${proj.proj_name }</td>
    			
    			<td style="font-size:12px">${proj.proj_no }</td>
    	</tr>
    	</logic:iterate>
    
    </table>
    
    <script type="text/javascript">
    
    	function setMessage(name,id){
    		var paraFun = window.dialogArguments;
    		paraFun.setName(name);
    		paraFun.setId(id);
    		window.close();
    	}
    	
    	
    	function setBgColor(obj){
    	
    		obj.style.backgroundColor="red";
    	}
    	
    	function clearBgColor(obj){
    	
    		obj.style.backgroundColor = "white";
    	}
    
    
    </script>
  </body>
</html>
